{#
 This Source Code Form is subject to the terms of the Mozilla Public
 License, v. 2.0. If a copy of the MPL was not distributed with this
 file, You can obtain one at https://mozilla.org/MPL/2.0/.
#}

{% extends "firefox/channel/base.html" %}

{% block page_title %}
  {{ ftl('firefox-channel-download-and-test-future') }}
{% endblock %}

{% block page_desc %}
  {{ ftl('firefox-channel-experience-cutting-edge-desktop', fallback='firefox-channel-download-and-test-the-latest-desktop')}}
{% endblock %}

{% block page_og_desc %}{{ self.page_desc() }}{% endblock %}

{% block channels %}
<section id="beta" class="mzp-is-anchor-link">
  {% call callout_compact(
    title=ftl('firefox-channel-beta'),
    desc=ftl('firefox-channel-test-about-to-be-released'),
    class='mzp-t-product-beta mzp-t-firefox',
    brand=True,
    brand_product='beta',
    brand_type='logo',
    brand_size='xl') %}

    {{ download_firefox('beta', platform='desktop', force_direct=True, force_full_installer=True, alt_copy=ftl('download-button-download'), dom_id="desktop-beta-download") }}
  {% endcall %}

  <div class="l-notes mzp-l-content">
    <ul>
      <li><a href="{{ firefox_url('desktop', 'notes', 'beta') }}">{{ ftl('firefox-channel-release-notes') }}</a></li>
      <li>
        <a href="{{ firefox_url('desktop', 'all', 'beta') }}">
          {{ ftl('firefox-channel-all-languages-and-platforms', fallback='firefox-channel-all-languages-and-builds') }}
        </a>
      </li>
    </ul>
    <p>
      {% if ftl_has_messages('firefox-channel-beta-is-an-unstable-testing') %}
        {{ ftl('firefox-channel-beta-is-an-unstable-testing', link=url('privacy.notices.firefox') + '#pre-release') }}
      {% else %}
        {{ ftl('firefox-channel-firefox-beta-automatically') }}
        <a href="{{ url('privacy.notices.firefox') + '#pre-release' }}">{{ ftl('ui-learn-more') }}</a>
      {% endif %}
    </p>
    <p>
      {{ ftl('firefox-channel-give-us-feedback-to-help', feedback='https://connect.mozilla.org/') }}
    </p>
  </div>
</section>

<section id="developer" class="mzp-is-anchor-link">
  {% call callout_compact(
    title=ftl('firefox-channel-developer-edition'),
    desc=ftl('firefox-channel-build-test-scale-and-more'),
    class='mzp-t-product-developer mzp-t-firefox',
    brand=True,
    brand_product='developer',
    brand_type='logo',
    brand_size='xl') %}

    {{ download_firefox('alpha', platform='desktop', force_direct=True, alt_copy=ftl('download-button-download'), dom_id="desktop-developer-download") }}
  {% endcall %}
  <div class="l-notes mzp-l-content">
    <p class="show-linux">{{ ftl('download-button-using-debian', attrs='href="https://support.mozilla.org/products/firefox/install-and-update-firefox" rel="external noopener"
     data-cta-text="Get help with your installation"') }}</p>
    <ul>
      <li><a href="{{ firefox_url('desktop', 'notes', 'developer') }}">{{ ftl('firefox-channel-release-notes') }}</a></li>
      <li><a href="{{ url('firefox.developer.index') }}">{{ ftl('ui-learn-more') }}</a></li>
      <li>
        <a href="{{ firefox_url('desktop', 'all', 'developer') }}">
          {{ ftl('firefox-channel-all-languages-and-platforms', fallback='firefox-channel-all-languages-and-builds') }}
        </a>
      </li>
    </ul>
    <p>
    {% if ftl_has_messages('firefox-channel-developer-edition-is-an') %}
      {{ ftl('firefox-channel-developer-edition-is-an', link=url('privacy.notices.firefox') + '#pre-release') }}
    {% else %}
      {{ ftl('firefox-channel-firefox-developer-edition') }}
      <a href="{{ url('privacy.notices.firefox') + '#pre-release' }}">{{ ftl('ui-learn-more') }}</a>
    {% endif %}
    </p>
  </div>
</section>

<section id="nightly" class="mzp-is-anchor-link">
    {% call callout_compact(
      title=ftl('firefox-channel-nightly'),
      desc=ftl('firefox-channel-get-a-sneak-peek-at-our', fallback='firefox-channel-test-brand-new-features'),
      class='mzp-t-product-nightly mzp-t-firefox',
      brand=True,
      brand_product='nightly',
      brand_type='logo',
      brand_size='xl') %}

      {{ download_firefox('nightly', platform='desktop', force_direct=True, alt_copy=ftl('download-button-download'), dom_id="desktop-nightly-download") }}
    {% endcall %}

  <div class="l-notes mzp-l-content">
    <p class="show-linux">{{ ftl('download-button-using-debian',
      attrs='href="https://support.mozilla.org/products/firefox/install-and-update-firefox" rel="external noopener"
       data-cta-text="Get help with your installation"') }}</p>
    <ul>
      <li><a href="{{ firefox_url('desktop', 'notes', 'nightly') }}">{{ ftl('firefox-channel-release-notes') }}</a></li>
      <li><a rel="external" href="https://blog.nightly.mozilla.org/">{{ ftl('firefox-channel-nightly-blog') }}</a></li>
      <li>
        <a href="{{ firefox_url('desktop', 'all', 'nightly') }}">
          {{ ftl('firefox-channel-all-languages-and-platforms', fallback='firefox-channel-all-languages-and-builds') }}
        </a>
      </li>
      <li><a href="https://ftp.mozilla.org/pub/firefox/nightly/">{{ ftl('firefox-channel-previous-nightly-builds') }}</a></li>
    </ul>
    <p>
      {% if ftl_has_messages('firefox-channel-nightly-is-an-unstable-testing') %}
        {{ ftl('firefox-channel-nightly-is-an-unstable-testing', link=url('privacy.notices.firefox') + '#pre-release')}}
      {% else %}
        {{ ftl('firefox-channel-firefox-nightly-automatically') }}
        <a href="{{ url('privacy.notices.firefox') + '#pre-release' }}">{{ ftl('ui-learn-more') }}</a>
      {% endif %}
    </p>
    <p>{{ ftl('firefox-channel-nightly-update-one-or-more-times') }}</p>
  </div>
</section>
{% endblock %}
